﻿/* AgileFx Version 1.0
 * An open-source framework for rapid development of applications and services using Microsoft.net
 * Developed by: AgileHead
 * Website: www.agilefx.org
 * This component is licensed under the terms of the Apache 2.0 License.
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using AgileFx.EF;

namespace AgileFx.MVC
{
    public interface IPartialView
    {
        string Filter { get; set; }
        IPartialList GetItems();
    }

    public class PartialModelListView<T> : DefaultView, IPartialView where T : System.Data.Objects.DataClasses.EntityObject
    {
        public string Filter { get; set; }
        public PartialList<T> Items { get; set; }

        public IPartialList GetItems()
        {
            return this.Items;
        }
    }
}
